package models

import "gorm.io/gorm"

type Quest struct {
	gorm.Model
	Title    string   `json:"title" gorm:"type:varchar(100)"`
	Content  string   `json:"content" gorm:"type:varchar(255)"`
	Img      string   `json:"img" gorm:"type:varchar(100)"`
	CateId   uint     `json:"cate_id" gorm:"type:int(10)"`
	QuesType QuesType `gorm:"foreignKey:CateId"`
}

type QuesType struct {
	gorm.Model
	Types string `json:"types" gorm:"type:varchar(100)"`
}
